package com.ming.dao;

import com.ming.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Xu
 * Created by Intellij IDEA.
 * @create 2021/3/31 14:39
 */
public interface BookMapper {
    //增加一本书
    int addBook(Books books);

    //删除一本书
    int deleteBookById(int id);

    //更新一本书
    int updateBook(Books books);

    //查询一本书
    Books queryBookById(int id);

    //查询全部书
    List<Books> queryAllBooks();

    //根据id查询,返回一个Book
    Books queryBookByName(String bookName);


}
